package com.yt.lxh.vo.activity.coupon;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yt.lxh.enums.CouponRangeType;
import com.yt.lxh.enums.CouponStatus;
import com.yt.lxh.enums.CouponType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(description = "优惠券数据")
public class UserOwnCouponVO {

    @ApiModelProperty(value = "优惠券ID")
    private String id;

    @ApiModelProperty(value = "优惠券类型 0(无门槛) 1(满减) 2(每满减) 3(折扣)")
    private CouponType couponType;

    @ApiModelProperty(value = "优惠券名称")
    private String couponName;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "优惠门槛：满减/每满减(填抵扣金额门槛) 折扣(比如8折填80) 无门槛填0")
    private BigDecimal conditionAmount;

    @ApiModelProperty(value = "使用范围 0(全场通用) 1(指定分类) 2(指定商品)")
    private CouponRangeType rangeType;

    @ApiModelProperty(value = "范围业务id")
    private String rangeId;

    @ApiModelProperty(value = "使用范围描述")
    private String rangeDesc;

    @ApiModelProperty(value = "过期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date expireTime;

    @ApiModelProperty(value = "优惠券使用状态；0(未使用) 1(已使用)")
    private CouponStatus useStatus;
}
